#include "stdafx.h"
#include "DataWriterFactory.h"

DataWriterFactory* DataWriterFactory::Instance = 0;

DataWriterFactory::DataWriterFactory() {
	FileWritersNum = 0;
}


DataWriterFactory::~DataWriterFactory()
{
}

void DataWriterFactory::init(int num) {
	FileWritersNum = num;
	FileWriters = new DataWriterFile [num];
	for(int i=0; i<num; ++i) {
	}
}

void DataWriterFactory::Create(int num) {
	if(Instance == 0) {
		Instance = new DataWriterFactory;
		Instance->init(num);
	}
}

int DataWriterFactory::AddWriter(const string &key, const string &fileName) {
	return -1;
}

int DataWriterFactory::GetWriter(const string &key) {
	return -1;
}